<?php

defined( 'PDNS_AUTH' ) or die( "Unauthorized" );

class Output{
	private static $ob = array();

	public static function setOutput( $name, $buffer ){
		self::$ob[ $name ] = $buffer;
	}

	public static function getOutput( $name ){
		if( $name ){
			if( isset( self::$ob[ $name ] ))
				return self::$ob[ $name ];
			else
				return '';
		}
		else
			return self::$ob;
	}
}
